package com.knight.study.patterns.tujie.bridge;

/**
 * @Author knight
 * @Date 2024/9/11 11:28
 */

public class BridgeMains {
    public static void main(String[] args) {
        final Display d1 = new Display(new StringDisplayImpl("Hello, China"));
        final CountDisplay d2 = new CountDisplay(new StringDisplayImpl("Hello, World."));
        final CountDisplay d3 = new CountDisplay(new StringDisplayImpl("Hello,Universe"));

        d1.display();
        d2.display();
        d3.display();
        d3.multiDisplay(5);
    }
}
